{% extends "learning_logs/base.html" %}
{% load bootstrap3 %}

{% block header %}
    <h1>Products</h1>
{% endblock header %}

{% block content %}
    <table class="table table-bordered">
        <thead class="">
            <tr>
                <td>产品名称</td>
                <td>产品经理</td>
                <td>开发负责人</td>
                <td>开发成员</td>
                <td>测试负责人</td>
                <td>测试成员</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
            {% for product in products %}
                <tr>
                    <td>{{ product.name }}</td>
                    <td>{{ product.owner }}</td>
                    <td>{{ product.member_leader }}</td>
                    <td>
                        {{ product.member_list }}
                    </td>
                    <td>{{ product.participant_leader }}</td>
                    <td>{{ product.paticipant_list }}</td>
                    <td>
                        <a href="{% url 'ETP:product' product.id %}">详情</a>
                        <a href="{% url 'ETP:edit_product' product.id %}">修改</a>
                        <a href="{% url 'ETP:delete_product' product.id %}">删除</a>
                        {{ pr }}
                    </td>
                </tr>
            {% endfor%}
        </tbody>
    </table>

    <h3><a href="{% url 'ETP:new_product' %}">添加新的产品</a></h3>
{% endblock content %}